<?php


namespace app\common\model;


use think\Model;

class GoodsAttr extends Model
{
    protected $pk = 'id';
    //protected $autoWriteTimestamp = 'datetime';
    /**
     * 搜索器  店铺
     * @param $query
     * @param $value
     */
    public function searchWxappIdAttr($query, $value){
        if ($value!=''){
            $query->where('wxapp_id',$value);
        }
    }
}